View Javadoc
1 package jrre.classloader.classfile.access_flags; 2 3 public class MethodAccessFlags extends AccessFlags { 4 5 private boolean isSynchronized; 6 private boolean isNative; 7 8 public MethodAccessFlags(boolean isPublic, 9 boolean isPrivate, 10 boolean isProtected, 11 boolean isStatic, 12 boolean isFinal, 13 boolean isSynchronized, 14 boolean isNative, 15 boolean isAbstract){ 16 17 super(isPublic, isPrivate, isProtected, isStatic, isFinal, isAbstract); 18 19 this.isSynchronized = isSynchronized; 20 this.isNative = isNative; 21 } 22 23 public boolean isNative(){return isNative;} 24 25 public String toString(){ 26 StringBuffer toReturn = new StringBuffer(); 27 28 toReturn.append("Method Access Flags:"); 29 30 toReturn.append("\n\t\tisPublic: "+isPublic); 31 toReturn.append("\n\t\tisPrivate: "+isPrivate); 32 toReturn.append("\n\t\tisProtected: "+isProtected); 33 toReturn.append("\n\t\tisStatic: "+isStatic); 34 toReturn.append("\n\t\tisFinal: "+isFinal); 35 toReturn.append("\n\t\tisSynchronized: "+isSynchronized); 36 toReturn.append("\n\t\tisNative: "+isNative +"\n"); 37 38 return toReturn.toString(); 39 } 40 } 41

This page was automatically generated by Maven